<div class="nota-entrega">
<div class="head">
  <div class="logo">GENERAL INTERNACIONAL</div>
  <h2 class="title">VENTA</h2>
  <div class="number"> <span class="fact">FECHA : 
    <?php $fecha=explode('-',$entrega[0]['Notaventa']['fecha']); echo $fecha[2].'-'.$fecha[1].'-'.$fecha[0];?></span>
    <span>Nro. <?php echo $entrega[0]['Notaventa']['numero']?></span>
  </div>
</div>
<div class="data-client">
  <div class="name"> Cliente : <span><?php echo $entrega[0]['Notaventa']['comprador'];?></span>
    
  </div>
  
</div>
<div class="nota-entrega-content">
  <table>
    <tr>
      <th>Cantidad</th>
      <th>Tipo</th>
      <th>Detalle</th>
      <th>Detalle Tipo</th>
      <th>Tama&ntilde;o</th>
      <th>Peso</th>
      <th>Precio</th>
    </tr>
    <tr>
     <?php $total=0; foreach($entrega[0]['Venta'] as $entregas):?>
     <td><?php echo $entregas['cantidad'];?></td>
     <td><?php echo $entregas['tipo'];?></td>
     <td><?php echo $entregas['detalle'];?></td>
     <td><?php echo $entregas['tipo1'];?></td>
     <td><?php echo $entregas['tamano'];?></td>
     <td><?php echo $entregas['peso'];?></td>
     <td><?php echo $entregas['precio'];?> Bs.</td>
     <?php $total=$total+$entregas['precio'];?>
    </tr>
    <?php endforeach;?>
        
    <tr>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td><strong>Total :</strong></td>
      <td><span style="font-size:15px; font-weight:bold;"><?php echo $total;?> Bs.</span></td>
  </tr>
  
  </table>

  
  

  <div class="authors">Entregado Por</div>
  
</div>
</div>
<table>
  <tr>
    <td> <a href="#" id="btnImprimir">IMPRIMIR</a></td>
  </tr>
</table>
<script type="text/javascript">
   jQuery(document).ready(function() {

         jQuery("#btnImprimir").click(function() {
             //printElem({ leaveOpen: true, printMode: 'popup' });
             printElem({ overrideElementCSS: ['http://www.generalinternacional.net/css/printable.css'] });
         });


     });
 function printElem(options){
     jQuery('.nota-entrega').printElement(options);
 }

 </script>